ComponentOne Data Source for Entity Framework
C1.LiveLinq Namespace / LiveViewExtensions Class / LiveMax Method / LiveMax(View<Double>) Method
A view containing the values to determine the maximum value of.

In This Topic
    LiveMax(View<Double>) Method
    In This Topic
    Computes the maximum value of a view of System.Double values.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function LiveMax( _
       ByVal source As View(Of Double) _
    ) As AggregationView(Of Double,Double)

    Parameters

    source
    A view containing the values to determine the maximum value of.

    Return Value

    A view representing the maximum of the values.
    Remarks

    If the source is empty or contains only nulls, an System.InvalidOperationException is thrown.

    It is possible to use standard LINQ query operator Max instead of LiveMax. Both are "live" in the sense that they are recomputed automatically when any change occurs in the source. The difference is that Max will every time loop through the entire source collection and aggregate it from scratch, whereas LiveMax will use a more performant algorithm, will maintain its value incrementally, processing only those source items that actually changed.

    See Also